package io.itit.ecp.admin.bootstrap.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;


@Configuration
public class EcpBootStartConfig implements WebMvcConfigurer {

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry.addResourceHandler("/", "/index")
                .addResourceLocations("classpath:/static/index.html");
        registry.addResourceHandler("/favicon.png")
                .addResourceLocations("classpath:/static/favicon.png");
        registry.addResourceHandler("/static/**")
                .addResourceLocations("classpath:/static/static/");

    }
}
